<template>
  <div>
    首页
    <el-button @click="navigateTo('#/cadre')">
      进入菜单
    </el-button>
    <div style="width: 500px; height: 500px;">
      <BKChart :option="option" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home',

  data () {
    return {
      option: {
        xAxis: {
          type: 'category',
          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
          type: 'value'
        },
        series: [{
          data: [150, 230, 224, 218, 135, 147, 260],
          type: 'line'
        }]
      }
    }
  },

  methods: {
    navigateTo (path) {
      window.open(path, '_blank')
    }
  }
}
</script>
